<template>
    <view class="p_20">
        <view class="ql-editor ql-snow ql-container article" v-html="infoData.remark"></view>
    </view>
</template>

<script>
import {getBusinessApi, getByKeyApi} from "@/sheep/api/index";
export default {
    name: "info",
    data() {
        return {
            infoData:{},
            businessConfigId:'',
        }
    },
    onLoad(params) {
        this.businessConfigId = params.businessConfigId;
        this.getInfo()
    },
    methods:{
        getInfo(){
            getBusinessApi(this.businessConfigId).then(res=>{
                if(res.code == 200){
                    this.infoData = res.data;
                    this.infoData.remark = res.data.remark.replace(/<img/g, '<img style="width:100%" ' );
                }
            })
        },
    }
}
</script>

<style scoped lang="scss">

.swiper-box {
    width: 100%;
    height: 100vw;
}
</style>
